#!/usr/bin/env python
import math

class Pager:
	def __init__(self, page_size, total, cur_page, cur_size):
		self.page_size = page_size
		self.total = total
		self.cur_page = cur_page 
		self.cur_size = cur_size 
		#---
		self.cur_start = (cur_page-1)*page_size
		self.total_page = int(math.ceil( float(total)/page_size )) 
		self.page_start = 1
	def main_set(self):
		return range(self.page_start, self.page_start+self.total_page)


if __name__ == '__main__' :
	p = Pager(10, 101, 2, 10)
	print p.total_page

